import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Janela extends JFrame {

	private JLabel jLabelHora;
	private JPanel jPanelRelogio;
	
	public Janela(String titulo) {
		initComponents();
		setTitle("Atividades do Projeto " + titulo);
	}

	private void initComponents() {
		jLabelHora = new JLabel();
		jPanelRelogio = new JPanel();
		
		jLabelHora.setText("10:00");
        jLabelHora.setFont(new Font("Helvetica", Font.PLAIN, 26));

        javax.swing.GroupLayout jPanelRelogioLayout = new javax.swing.GroupLayout(jPanelRelogio);
        jPanelRelogio.setLayout(jPanelRelogioLayout);
        jPanelRelogioLayout.setHorizontalGroup(
            jPanelRelogioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelRelogioLayout.createSequentialGroup()
                .addComponent(jLabelHora, javax.swing.GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanelRelogioLayout.setVerticalGroup(
            jPanelRelogioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelRelogioLayout.createSequentialGroup()
                .addContainerGap())
            .addGroup(jPanelRelogioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelRelogioLayout.createSequentialGroup()
                    .addComponent(jLabelHora, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()))
        );
        
        getContentPane().setLayout(jPanelRelogioLayout);
        getContentPane().add(jLabelHora);
        getContentPane().add(jPanelRelogio);
	}
}
